//
//  HMHomeCell.swift
//  sina
//
//  Created by 崔正强 on 17/4/14.
//  Copyright © 2017年 崔正强. All rights reserved.
//

import UIKit

class HMHomeCell: UITableViewCell {
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        setupUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    //设置视图
    private func setupUI() {
        
        backgroundColor = randomColor()
        
        //1. 添加控件
        contentView.addSubview(originalView)
        //2. 添加约束
        originalView.snp.makeConstraints { (make) in
            make.left.top.right.equalTo(contentView)
            make.height.equalTo(50)
        }
        
    }
    
    //懒加载控件
    //原创微博
    private lazy var originalView: HMStatusOriginalView = HMStatusOriginalView()
    

}
